﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class _Default : System.Web.UI.Page 
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    protected void ImgBtnOK_Click(object sender, ImageClickEventArgs e)
    {
        if (this.TxtName.Text == "")
        {
            Response.Write("<script language=javascript>alert('对不起！部门名称不能为空！');location='javascript:history.go(-1)'</script>");
        }
        else
        {
            string CopyStr = this.TxtName.Text.ToString();
            //使用Copy方法复制字符串
            this.LblName.Text = string.Copy(CopyStr);
            this.LblMessage.Visible = true;
        }
    }
    protected void TxtName_TextChanged(object sender, EventArgs e)
    {
        
    }
}
